/*
 * @Description:
 * @version:
 * @Author: sunqian_sr
 * @Date: 2022-11-21 10:05:00
 * @LastEditors: Andy
 * @LastEditTime: 2023-03-23 17:49:57
 */

const context = import.meta.glob('../../../modules/**/**/zh_CN.js', { eager: true })
let modulesLabels = {}
Object.keys(context).forEach((key) => {
  const files = key
  const [path, module, base, fileName] = files.replace(/(\..\/|\/module\/|\.js)/g, '').split('/')
  const tempObj = {}
  tempObj[module] = context[key].default
  modulesLabels = { ...modulesLabels, ...tempObj }
})
const lang = {
  ...modulesLabels,
  common: {
    loading: '加载中',
    noData: '暂无数据',
    serialNumber: '序号',
    edit: '编辑',
    delete: '删除',
    view: '详情',
    preview: '预览',
    detail: '详情',
    add: '新增',
    sure: '确定',
    save: '保存',
    confirm: '确认',
    cancel: '取消',
    close: '关闭',
    all: '全部',
    authView: '权限查看',
    batchDelete: '批量删除',
    newSuccess: '新增成功',
    addError: '新增失败',
    editSuccess: '编辑成功',
    editError: '编辑失败',
    deleteSuccess: '删除成功',
    deleteError: '删除失败',
    opeartionSuccess: '操作成功',
    opeartionError: '操作失败',
    resetPwd: '重置密码',
    export: '导出',
    import: '导入',
    opeartion: '操作',
    treeFilter: '输入关键字进行过滤',
    goBack: '返回',
    submit: '提交',
    agreed: '同意',
    reject: '拒绝',
    audit: '审核',
    send: '发送',
    to: '至',
    nextStep: '下一步',
    preStep: '上一步',
    approval: '审批',
    send: '发送',
    startTime: '开始时间',
    endTime: '结束时间',
    tip: '提示',
    cancelPrompt: '确认是否放弃当前操作?'
  }
}
export default lang
